/**
 * 输入： java.util.Scanner
 * 1. 创建Scanner对象
 *     Scanner scanner = new Scanner(System.in);
 * 2. 读取输入
 *    scanner.nextInt();  // 读取一个整数
 *    scanner.nextDouble();  // 读取一个浮点数
 *    scanner.nextLine();  // 读取一行字符串
 *    scanner.next();  // 读取一个单词
 * 3. 输出结果
 */

import java.util.Scanner;
// public class Input {
//     public Input() {
//         System.out.println("Input constructor");
//     }
//     public static void main(String[] args) {
//         // 创建Scanner对象
//         Scanner scanner = new Scanner(System.in);
//         // 读取输入
//         System.out.print("Input your name: ");
//         String name = scanner.nextLine();
//         System.out.print("Input your age: ");
//         int age = scanner.nextInt();

//         System.out.println("Name: " + name + ", Age: " + age);
//     }
// }

public class PracticeInput {
    public PracticeInput() {
        System.out.println("PracticeInput constructor");
    }
    public static void main(String[] args) {
        // 创建Scanner对象
        Scanner scanner = new Scanner(System.in);
        System.out.print("上次考试成绩:");
        double lastScore = scanner.nextDouble();
        System.out.print("本次考试成绩:");
        double thisScore = scanner.nextDouble();
        double rate = (thisScore - lastScore) / lastScore * 100;
        System.out.println("成绩提高了" + rate + "%");
    }
}